# -*- coding: utf-8 -*-
# Author: lkm
# date: 2022/3/9 20:25

from feature_engineering import FeatureEngineering
from toad.detector import detect
from lifelines import CoxPHFitter


def run(filename):
    data = FeatureEngineering(filename).resFrame
    data.to_csv("data/precessed_feature.csv", index=False, encoding="utf-8")
    print(data.head())


if __name__ == "__main__":
    file = "data/Telco-Customer-Churn.csv"
    run(file)
